package com.foreveross.bsl.auth;

public class ErrorCode {

	public static final int SYSTEM_AUTH_IDENTITY_NULL = 100003;

	public static final int SYSTEM_AUTH_IP_UNBIND = 100002;

	public static final int SYSTEM_AUTH_IDENTITY_ = 100001;

	public static final int SYSTEM_AUTH_IDENTITY_ERROR = 100004;
	
	public static final int SYSTEM_AUTH_ERROR = 100000;
	
	public static final int SYSTEM_UNKNOWN = 110001;

	public static String message(int errorCode) {

		switch (errorCode) {
		case SYSTEM_AUTH_IDENTITY_NULL:
			return "拒绝访问，你还没通过授权认证。";
		case SYSTEM_AUTH_IP_UNBIND:
			return "IP没有绑定";
		case SYSTEM_AUTH_IDENTITY_ERROR:
			return "用户信息错误";
		default:
			return "" + errorCode;
		}

	}
}
